package finance

class RelativeErrorService {

    static transactional = true

    def error(vals, vals2) {
        def relError = []
        for( i in 0..<vals.size() ) {
            if( vals2[i] != null && vals[i] != null)
                relError << ( vals2[i] - vals[i] ) / vals[i]
        }
        
        return relError
    }
}
